<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>url2</title>
</head>
<body>
    <script type="text/javascript" th:src="@{/js/jquery-3.6.0.js}"></script>
    <script type="text/javascript">
        $(function(){
            alert($("#username").val());
        })
    </script>

    <input type="text" id="username" value="44444">
<img th:src="@{/jpg/EVO.jpg}">
</body>
</html>